//
//  QZHSocialInfo.h
//  FrameworkDemo
//
//  Created by 米翊米 on 2018/7/9.
//  Copyright © 2018年 米翊米. All rights reserved.
//

#import <Foundation/Foundation.h>

/////////////////////////////////////////////////////////////////////////////
//平台的类型--start
/////////////////////////////////////////////////////////////////////////////
typedef NS_ENUM(NSInteger, QZHSocialPlatformType)
{
    QZHSocialPlatformType_Sina               = 0, //新浪
    QZHSocialPlatformType_WechatSession      = 1, //微信聊天
    QZHSocialPlatformType_WechatTimeLine     = 2,//微信朋友圈
    QZHSocialPlatformType_WechatFavorite     = 3,//微信收藏
    QZHSocialPlatformType_QQ                 = 4,//QQ聊天页面
    QZHSocialPlatformType_Qzone              = 5,//qq空间
    QZHSocialPlatformType_Facebook           = 6,//Facebook
    QZHSocialPlatformType_Twitter            = 7,//Twitter
    QZHSocialPlatformType_GooglePlus         = 8,//Google+
};

/////////////////////////////////////////////////////////////////////////////
//平台的类型--end
/////////////////////////////////////////////////////////////////////////////

@interface QZHSocialConfig : NSObject

///初始化 appkey、appSecret、UrlString
+ (QZHSocialConfig *)infoPlatform:(QZHSocialPlatformType )platform AppKey:(NSString *)key appSecret:(NSString *)secret urlString:(NSString *)urlString;

///平台类型
@property (nonatomic, assign) QZHSocialPlatformType platform;
///平台appkey
@property (nonatomic, copy) NSString *appKey;
///平台appSecret
@property (nonatomic, copy) NSString *appSecret;
///平台UrlString
@property (nonatomic, copy) NSString *urlString;

@end

///第三方平台授权信息
@interface QZHSocialUserInfo : NSObject

@property (nonatomic, copy) NSString *openid;
@property (nonatomic, copy) NSString *unionid;
@property (nonatomic, copy) NSString *nickName;
@property (nonatomic, copy) NSString *gender;
@property (nonatomic, copy) NSString *iconurl;

@end

///第三方分享信息
@interface QZHSocialShareInfo : NSObject

@property (nonatomic, copy) NSString *title;
@property (nonatomic, copy) NSString *link;
@property (nonatomic, copy) NSArray *images;
@property (nonatomic, copy) NSString *content;
@property (nonatomic, assign) QZHSocialPlatformType platform;

@end
